import React from 'react'
import {BrowserRouter as Router,Route} from 'react-router-dom'
import Home from '../view/home'
import Detail from '../view/detail'

function RouterMap (){
  return(
    <Router>
  	  <Route exact path="/" component={Home}/>
	  <Route exact path="/detail" component={Detail}/>
    </Router>
  )
}

export default RouterMap